import {request} from './requests'

export function getAddressList() {
    return request({
        url: 'shippings',
        method: 'get'
    })
}

export function submit_address(url, method, params) {
    return request({
        url: url,
        method: method,
        data: params
    })
}
export function order_submit(shippingId) {
    return request({
        url: 'orders',
        method: 'post',
        data: {
            shippingId: shippingId
        }
    })
}
